package com.yykj.drup.client;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

/**
 * <p>
 * 
 * </p>
 *
 * @author zengg
 * @since 2022-03-09
 */
@Getter
@Setter
@TableName("product")
@ApiModel(value = "Product对象", description = "")
public class Product {

    @ApiModelProperty("商品系统主键ID")
    @TableId("id")
    private Integer id;

    @ApiModelProperty("店铺id")
    @TableField("shop_id")
    private String shopId;

    @ApiModelProperty("店铺id")
    @TableField("item_id")
    private String itemId;

    @ApiModelProperty("类目id")
    @TableField("category_id")
    private Integer categoryId;

    @ApiModelProperty("中西药标识")
    @TableField("category_type")
    private String categoryType;

    @ApiModelProperty("商品标题")
    @TableField("title")
    private String title;

    @ApiModelProperty("商品原价")
    @TableField("original_price")
    private BigDecimal originalPrice;

    @ApiModelProperty("商品现价")
    @TableField("price")
    private BigDecimal price;

    @ApiModelProperty("商品库存")
    @TableField("num")
    private Integer num;

    @ApiModelProperty("运费")
    @TableField("post_fee")
    private String postFee;

    @ApiModelProperty("商家编码")
    @TableField("goods_no")
    private String goodsNo;

    @ApiModelProperty("限购数量")
    @TableField("quota")
    private Integer quota;

    @ApiModelProperty("基础销量")
    @TableField("basic_sales")
    private String basicSales;

    @ApiModelProperty("单位")
    @TableField("unit")
    private String unit;

    @ApiModelProperty("销量")
    @TableField("sale_num")
    private Integer saleNum;

    @ApiModelProperty("商品图片-小图")
    @TableField("product_img")
    private String productImg;

    @ApiModelProperty("商品图片-详情图")
    @TableField("product_img_detail")
    private String productImgDetail;

    @ApiModelProperty("SKU id号")
    @TableField("sku_id")
    private String skuId;

    @ApiModelProperty("SKU别名")
    @TableField("alias")
    private String alias;

    @ApiModelProperty("SKU编码	")
    @TableField("sku_no")
    private String skuNo;

    @ApiModelProperty("规格名称")
    @TableField("sku_name")
    private String skuName;

    @ApiModelProperty("准字号")
    @TableField("approval_number")
    private String approvalNumber;



    @ApiModelProperty("厂商")
    @TableField("manufacturer")
    private String manufacturer;

    @ApiModelProperty("拼音")
    @TableField("py")
    private String py;

    @ApiModelProperty("五笔")
    @TableField("wb")
    private String wb;

    @ApiModelProperty("全拼")
    @TableField("py_all")
    private String pyAll;

    @ApiModelProperty("药店名称")
    @TableField(exist = false)
    private String shopName;

    @ApiModelProperty("药店图片")
    @TableField(exist = false)
    private String shopHeadimgurl;

}
